#ifndef _WINDOWS_H
#define _WINDOWS_H

#include "headfile.h"


#define B1_ON HAL_GPIO_ReadPin(B1_GPIO_Port,B1_Pin)==0
#define B2_ON HAL_GPIO_ReadPin(B2_GPIO_Port,B2_Pin)==0
#define B3_ON HAL_GPIO_ReadPin(B3_GPIO_Port,B3_Pin)==0
#define B4_ON HAL_GPIO_ReadPin(B4_GPIO_Port,B4_Pin)==0


extern int display_mode;
//DATA
extern int CP_X_calu,CP_Y_calu;
extern int ST,CP_X,CP_Y,TP_X,TP_Y,RN;
extern float SE;
extern char  SE_buf[30],CP_buf[30],TP_buf[30],RN_buf[30];

//PARA
extern float R;
extern int B;
extern char R_buf[30],B_buf[30];

//RECD
extern float TS;
extern int TT;
extern char TS_buf[30],TT_buf[30];

void display(void);
void control_key(void);

#endif
